package cn.com.acca.ma.service.impl;

import cn.com.acca.ma.common.util.PropertiesUtil;
import cn.com.acca.ma.model.ModelTopConceptBoardIndexDetail;
import cn.com.acca.ma.service.ModelTopConceptBoardIndexDetailService;

import java.util.List;

public class ModelTopConceptBoardIndexDetailServiceImpl extends BaseServiceImpl<ModelTopConceptBoardIndexDetailServiceImpl, ModelTopConceptBoardIndexDetail> implements
        ModelTopConceptBoardIndexDetailService {

    @Override
    public String listToString(List list) {
        return null;
    }

    /*********************************************************************************************************************
     *
     * 												按日期计算数据
     *
     *********************************************************************************************************************/
    /**
     * 按照日期，向表MDL_TOP_CNCPT_BOARD_IDX_DETAIL中写入数据
     */
    @Override
    public void writeModelTopConceptBoardIndexDetailByDate() {
        String beginDate = PropertiesUtil.getValue(MODEL_TOP_CONCEPT_BOARD_INDEX_DETAIL_PROPERTIES,"top.conceptBoardIndex.detail.begin_date");
        String endDate = PropertiesUtil.getValue(MODEL_TOP_CONCEPT_BOARD_INDEX_DETAIL_PROPERTIES,"top.conceptBoardIndex.detail.end_date");
        modelTopConceptBoardIndexDetailDao.writeModelTopConceptBoardIndexDetailByDate(beginDate, endDate);
    }
}
